<%@ Import Namespace="iPhOwa.Exchange" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FolderContent.ascx.cs"
	Inherits="iPhOwa.Web.Controls.FolderContent" EnableViewState="false" %>
<asp:Panel ID="np" runat="server" Visible="false" Style="text-align: center;"
	CssClass="bodyDiv">
	This folder is empty.
</asp:Panel>
<asp:DataList ID="fl" runat="server" EnableViewState="false" Width="100%"
	CellPadding="0" CellSpacing="0">
	<ItemTemplate>
		<iwc:ClickablePanel runat="server" ID="md" CssClass='<%# !(bool)Eval("Read") ? "unread itemRow" : "itemRow" %>'
			Href='<%# string.Concat("ViewItem.aspx?path=", HttpUtility.UrlEncode(Eval("Href").ToString())) %>'>
			<div>
				<span>
					<asp:Image runat="server" ID="ii" ImageUrl='<%# Eval("IconPath") %>' CssClass="middle" />
					<%# showTo ? Eval("DisplayTo") : Eval("DisplayFrom") %>
				</span><span style="float: right;">
					<%# ((DateTime)Eval("DisplayDate")).ToFriendlyShortDateTime() %>
				</span>
			</div>
			<div>
				<%# Eval("Subject") %>
			</div>
		</iwc:ClickablePanel>
	</ItemTemplate>
</asp:DataList>
<asp:Panel ID="pp" runat="server" Style="padding: 5px 5px 5px 5px; height: 20px;">
	<span>
		<asp:HyperLink runat="server" ID="pl">&lt; previous</asp:HyperLink>
	</span><span style="float: right;">
		<asp:HyperLink runat="server" ID="nl">next &gt;</asp:HyperLink>
	</span>
</asp:Panel>
